﻿@{
    int rtnValue = ViewBag.rtnValue;
}

<link href="~/content/dianli/css/lh.css" rel="stylesheet" type="text/css" />
<style>
    .ul_0 {
        margin-left: auto;
        margin-right: auto;
        width: 600px;
        margin-top: 30px;
    }

    .td1 {
        text-align: right;
    }

    .td2 input[type="text"] {
        width: 400px;
    }

    .td2 span {
        font-size: 12px;
        color: red;
        margin-left: 3px;
    }

    .td2 {
        height: 35px;
    }
</style>
<script>
    if (parseInt(@(rtnValue))<0) {
        alert("提交失败");
    }
    else if (parseInt(@(rtnValue))>0) {
        alert("提交成功");
    }
    function isNULL() {
        var isEMP = true;
        var inputs = document.getElementById("ipts").getElementsByTagName("input");
        for (var i = 0; i < inputs.length; i++) {
            if (inputs[i].type == "text") {
                var values = inputs[i].value.replace(" ", "");
                if (values == "" || values == null) {
                    alert("请将举报信息填写完整后再提交！");
                    return false;
                }
            }
        }
        return isEMP;
    }
</script>
<div class="bg">
    <div class="nt">
        <div class="Main">
            <div style="width:100%; margin-top:70px; border-bottom:2px solid #eee;">
                <div style="font-size:25px; margin-left:40px; width:200px; float:left; margin-top:-30px;">请填写举报信息：</div>
                <div class="wz" style="margin-top:-20px;">
                    <img src="/content/dianli/images/wz.jpg"><span><a href="~/home/index">首页</a><span style="padding-right:5px;padding-left:5px;">&gt;</span><a href="~/FenBuList/jubaobox">举报箱</a><span style="padding-right: 5px; padding-left: 5px;">&gt;</span></span>
                </div>
            </div>
           
            <form action="~/FenBuList/JubaoBox" method="post" style="margin-top:30px;">
                <table class="ul_0" id="ipts">
                    <tr>
                        <td class="td1">举报简介：</td>
                        <td class="td2"><input type="text" name="v_Title" value="" /><span>*</span></td>
                    </tr>
                    <tr>
                        <td class="td1">举报人：</td>
                        <td class="td2"><input type="text" name="v_Jbr" value="" /><span>*</span></td>
                    </tr>
                    <tr>
                        <td class="td1">举报人工号：</td>
                        <td class="td2"><input type="text" name="v_UserNo" value="" /><span>*</span></td>
                    </tr>
                    <tr>
                        <td class="td1">举报人职务：</td>
                        <td class="td2"><input type="text" name="v_JbUesrWork" value="" /><span>*</span></td>
                    </tr>
                    <tr>
                        <td class="td1">被举报人：</td>
                        <td class="td2"><input type="text" name="v_BeiJuBaoName" value="" /><span>*</span></td>
                    </tr>
                    <tr>
                        <td class="td1">被举报人职务：</td>
                        <td class="td2"><input type="text" name="v_BeiJubaoUserWork" value="" /><span>*</span></td>
                    </tr>
                    <tr>
                        <td class="td1">举报内容：</td>
                        <td class="td2">
                            <textarea style="height:100px; width:400px; margin-top:0px;" name="v_Content" id="content"></textarea><span>*</span>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" onclick="return isNULL()" name="name" value=" 提 交 " /></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>

